home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003 July / EnterCD 7_2003.iso / Ekstra / GL Force 2001 3.0 / 3DFontDoc.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2002-02-07  |  1.8 KB  |  89 lines

  1. /*
  2. Authors: David Nishimoto
  3. Website: http://www.listensoftware.com
  4. Email: davepamn@relia.net
  5. Program: Force
  6. */
  7.  
  8. #include "stdafx.h"
  9. #include "3DFont.h"
  10.  
  11. #include "3DFontDoc.h"
  12.  
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CMy3DFontDoc
  21.  
  22. IMPLEMENT_DYNCREATE(CMy3DFontDoc, CDocument)
  23.  
  24. BEGIN_MESSAGE_MAP(CMy3DFontDoc, CDocument)
  25.     //{{AFX_MSG_MAP(CMy3DFontDoc)
  26.         // NOTE - the ClassWizard will add and remove mapping macros here.
  27.         //    DO NOT EDIT what you see in these blocks of generated code!
  28.     //}}AFX_MSG_MAP
  29. END_MESSAGE_MAP()
  30.  
  31. /////////////////////////////////////////////////////////////////////////////
  32. // CMy3DFontDoc construction/destruction
  33.  
  34. CMy3DFontDoc::CMy3DFontDoc()
  35. {
  36.     // TODO: add one-time construction code here
  37.  
  38. }
  39.  
  40. CMy3DFontDoc::~CMy3DFontDoc()
  41. {
  42. }
  43.  
  44. BOOL CMy3DFontDoc::OnNewDocument()
  45. {
  46.     if (!CDocument::OnNewDocument())
  47.         return FALSE;
  48.  
  49.     // TODO: add reinitialization code here
  50.     // (SDI documents will reuse this document)
  51.  
  52.     return TRUE;
  53. }
  54.  
  55.  
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58. // CMy3DFontDoc serialization
  59.  
  60. void CMy3DFontDoc::Serialize(CArchive& ar)
  61. {
  62.     if (ar.IsStoring())
  63.     {
  64.         // TODO: add storing code here
  65.     }
  66.     else
  67.     {
  68.         // TODO: add loading code here
  69.     }
  70. }
  71.  
  72. /////////////////////////////////////////////////////////////////////////////
  73. // CMy3DFontDoc diagnostics
  74.  
  75. #ifdef _DEBUG
  76. void CMy3DFontDoc::AssertValid() const
  77. {
  78.     CDocument::AssertValid();
  79. }
  80.  
  81. void CMy3DFontDoc::Dump(CDumpContext& dc) const
  82. {
  83.     CDocument::Dump(dc);
  84. }
  85. #endif //_DEBUG
  86.  
  87. /////////////////////////////////////////////////////////////////////////////
  88. // CMy3DFontDoc commands
  89.